package com.zwj.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zwj
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_node")
@ApiModel(value="CourseNodeEntity对象", description="")
public class CourseNodeEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "章节名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "课程ID")
    @TableField("courseId")
    private String courseId;
    @ApiModelProperty(value = "排序码")
    @TableField("sortCode")
    private Integer sortCode;

    @ApiModelProperty(value = "章节类型 0标题，1视频，2音频，3内容，4PPT")
    @TableField("node_type")
    private String nodeType;

    @ApiModelProperty(value = "是否删除,0:否 1:是")
    @TableField("isDeleted")
    private String isDeleted;


    @ApiModelProperty(value = "章节内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "学时")
    @TableField("hours")
    private Integer hours;


}
